﻿@model PessModel.Archive

@{
    bool hideArchiveDetails = false;
    hideArchiveDetails = Roles.IsUserInRole("ExpertJudge")
        && ViewBag.HideArchiveDetails != null
        && ViewBag.HideArchiveDetails == true;
 }

<fieldset class="show">
    <legend></legend>
    <div class="heading" style="margin-top:-15px;">
        Proposal Information
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.CalculatedSerialNumber)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CalculatedSerialNumber)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.ProjectTitle)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ProjectTitle)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.CountyCode)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.County.Name)
    </div>

    <div class="display-label">
        @*@Html.DisplayNameFor(model => model.Subject.TrackID)*@Track
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Subject.Track.Title)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.SubjectID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Subject.Name)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.SchoolComment)
    </div>
    <div class="display-field">
        @MvcHtmlString.Create(@Model.SchoolComment)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.CountyEBComment)
    </div>
    <div class="display-field">
        @MvcHtmlString.Create(Model.CountyEBComment)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.PrimaryKeyword)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PrimaryKeyword)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.SecondaryKeyword)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SecondaryKeyword)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Status)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.StatusName)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.PaperStatus)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PaperStatusName)
    </div>

@if (!hideArchiveDetails)
        {
    <div class="heading">
        Contact Information
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.Name)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Name)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.EMail)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.EMail)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.PhoneNumber)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PhoneNumber)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.SchoolName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SchoolName)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.ContactAddress)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.ContactAddress)
    </div>
    <div class="heading" style="margin-top:10px">
        Authors
    </div>

    var authors = Model.PAuthors;
       @Html.Partial("_PAuthorList", authors);

  

        }
    </fieldset>
